﻿
var kb_startp;
var kb_stopp;

function kbPasswordstart(data, callback) {

    kb_startp = callback;
    window.external.KB_startPasswork(data, "kbPasswordstart_callback");
}


function kbPasswordstart_callback(data) {
    kb_startp(data);
}



function kbkbPasswordstop(data, callback) {
    kb_stopp = callback;
    window.external.KB_stopPasswork(data, "kbkbPasswordstop_callback");
}

function kbkbPasswordstop_callback(receivedData) {
    kb_stopp(receivedData)
}

var mKeycallback;

function LoadMkey(data, callback) {
     mKeycallback= callback;
     window.external.Load_Mkey(data, "LoadMkey_callback");
}

function LoadMkey_callback(receivedData) {
    mKeycallback(receivedData)
}
var wKeycallback;

function LoadWkey(data, callback) {
    wKeycallback= callback;
    window.external.Load_Wkey(data, "LoadWkey_callback");
}

function LoadWkey_callback(receivedData) {
    wKeycallback(receivedData)
}

var AlgCallback;

function LoadAlg(data, callback) {
    AlgCallback = callback;
    window.external.Load_Alg(data, "LoadAlg_callback");
}

function LoadAlg_callback(receivedData) {
    AlgCallback(receivedData)
}

